﻿<!DOCTYPE html>
{% load staticfiles %}
<html>
    <head>
        <meta charset="utf-8" >
        <title>房天下 - 用户登录</title>
        <link rel="stylesheet" href="{% static 'css/style.css' %}">
        <link rel="stylesheet" href="{% static 'css/head.css' %}">
    </head>
    <body>
        {% include 'header.html' %}
        <div id="regLogin" class="wrap">
            <div class="dialog">
                <div class="box">
                    <h4>用户登录</h4>
                    <form id="loginForm" action="/api/login/" method="post">
                        {% csrf_token %}
                        <div class="infos">
                            <table class="field">
                                <tr>
                                    <td>&nbsp;</td>
                                    <td id="hint">{{hint}}</td>
                                </tr>
                                <tr>
                                    <td class="field"><label for="username">用 户 名：</label></td>
                                    <td>
                                        <input id="username" type="text" class="text" name="username">
                                        <span id="uerror">{{uerror}}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="field"><label for="password">密 码：</label></td>
                                    <td>
                                        <input id="password" type="password" class="text" name="password">
                                        <span id="perror">{{perror}}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <label for="auto"></label>
                                    </td>
                                    <td>
                                        <input type="checkbox" name="auto" id="auto">
                                        <label>下次自动登录</label>
                                    </td>
                                </tr>
                            </table>
                            <div class="buttons">
                                <input type="submit" value="立即登录">
                                <input id="regBtn" type="button" value="快速注册">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div id="footer" class="wrap">
            <dl>
                <dt>&copy; 北京拓世宏业科技发展有限公司 版权所有</dt>
                <dd>京ICP备17002856号</dd>
                <dd>关于我们 · 联系方式 · 意见反馈 · 帮助中心</dd>
            </dl>
        </div>
        <script src="{% static 'js/jquery.min.js' %}"></script>
        <script>
            $(function() {
                $('#regBtn').on('click', function() {
                    location.href = '/rent/register';
                });
            });
        </script>
    </body>
</html>


